Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull request review cache #510

Merged
merged 4 commits into from
Jun 5, 2024
Merged

pull request review cache #510

merged 4 commits into from
Jun 5, 2024

Conversation

pelikhan
Copy link
Member

@pelikhan pelikhan commented Jun 5, 2024

Cache pull request review information to avoid duplicates.

  • 🆕 Added a new CLI option --no-pull-request-reviews-cache to disable the pull request reviews cache.
  • ✨ Introduced handling for the new --no-pull-request-reviews-cache option in the cli.ts and run.ts files.
  • 🔄 Renamed the Cache class to JSONLineCache in cache.ts to better reflect its functionality.
  • 🛠️ Refactored the githubCreatePullRequestReviews function in github.ts to optionally use the new pullRequestReviewsCache.
  • ➕ Added new cache-related constants in constants.ts, including AI_REQUESTS_CACHE, CHAT_CACHE, and GITHUB_PULL_REQUEST_REVIEWS_CACHE.
  • 🗃️ Updated githubCreatePullRequestReviews to check for existing cache entries before creating new pull request reviews.
  • 🛠️ Modified a string in summarize-link.genai.js to use template literals for consistency.
  • 🔄 Updated references from Cache to JSONLineCache in various files (chat.ts, airequesttree.ts, and state.ts) following the class renaming.
  • 🧹 Cleaned up and organized the code to integrate the caching mechanism into the pull request review process.

generated by genaiscript pr-describe

Copy link
Member Author

@pelikhan pelikhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cache uploaded cache comments to avoid sparking of same issues

@pelikhan pelikhan marked this pull request as ready for review June 5, 2024 01:24
Copy link

github-actions bot commented Jun 5, 2024

LGTM 🚀

generated by genaiscript pr-review

@pelikhan pelikhan merged commit 0239882 into main Jun 5, 2024
11 checks passed
@pelikhan pelikhan deleted the prr-cache branch June 5, 2024 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant